package com.liuyucheng.generic.eraser;

import lombok.extern.slf4j.Slf4j;

import java.lang.reflect.Method;

public interface Parent<T> {
    T info(T t);
}

@Slf4j
class Child implements Parent<Integer>{
    @Override
    public Integer info(Integer integer) {
        return integer;
    }
    public static void main(String[] args) {
        Class<Child> clazz = Child.class;
        Method[] methods = clazz.getDeclaredMethods();
        for (Method method : methods) {
            log.info("name:{},returnType:{}",method.getName(),method.getReturnType());
        }
    }
}
